package com.cch.cooperation.api.auth.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * 登陆请求参数
 *
 * @author cch
 */
@ApiModel("登陆请求参数")
@Data
public class LoginReqDTO {

    @ApiModelProperty(value = "用户名|手机号", required = true)
    @NotEmpty(message = "用户名|手机号不能为空")
    private String username;

    @ApiModelProperty(value = "短信验证码", required = true)
    @NotEmpty(message = "短信验证码不能为空")
    private String smsCode;

    @ApiModelProperty(value = "游客id")
    private String touristId;
}
